import dask as dd
from dask import array as da
import numpy as np

from utils import clocked

arr = np.array(range(1000000))

da.Array
@clocked()
def chunks(val=100):
    x = da.from_array(arr, chunks=(val,))
    print(val, x.mean().compute())


for i in range(4, 10):
    chunks(int(10 ** i))

import array
a = []
print(a.shape)